const production = false

// 启动端口
export const START_PORT = 6688

//数据库配置
export const DB_CONFIG = {
  host: '127.0.0.1',
  user: 'keke',
  password: '123123',
  port: 3306,
  database: 'node_test',
  logSql: true,
  charset: 'utf8mb4',
}

// code
export const SUCCESS_CODE = 200 // 成功
export const ERROR_CODE = 500 // 错误
export const VALIDATE_FAILED_CODE = 401 // 权限异常

// token 密钥
export const TOKEN_KEY = 'serve-pakchoi'

// 不需要验证token的接口
export const notCheckTokenApis = [
  'POST/api/user/login',
  'POST/api/user/login',
  'POST/api/user/login',
  'POST/api/user/login',
  'POST/api/user/login',
]

//是否输出日志
export const OPEN_LOG = true

//每次查询的个数(默认)
export const LIMIT_LENGTH = 7

//云存储
export const QINIU = {
  accessKey: 'accessKey',
  secretKey: 'secretKey',
  bucket: 'bucket',
}

// 验证码有效时间
export const CODE_EFFECTIVE_TIME = 600

// 数据库报错
// 数据库报错
export const SQL_ERROR_LIST = [
  {
    key: 'ER_DATA_TOO_LONG',
    value: 'sql：数据超长',
  },
]
